Skip to content

chore: when a cluster event occurs, create config map instead of secret#280

Merged
prakash100198 merged 40 commits into
developfrom
rename-secret-to-cm-cluster
Jun 10, 2025
Merged

chore: when a cluster event occurs, create config map instead of secret#280
prakash100198 merged 40 commits into
developfrom
rename-secret-to-cm-cluster

Conversation

@prakash100198

@prakash100198 prakash100198 commented May 26, 2025

Copy link
Copy Markdown
Contributor

Contains changes in following:-

  1. common lib (new cluster event k8s labels, some config map utility functions in K8s service).
  2. Kubelink - watching cluster cm event with new label
  3. Kubewatch - watching cluster cm event with new label so that new clusters added in that cluster could register it's diff informers
    Fixes #https://github.com/devtron-labs/sprint-tasks/issues/2177

if labelValue, exists := cmObject.Labels["type"]; !exists || labelValue != informerBean.ClusterModifyEventSecretType {
						return
					}
# Conflicts:
#	common-lib/utils/k8s/K8sUtil.go
#	kubelink/go.mod
#	kubelink/go.sum
#	kubelink/vendor/github.com/devtron-labs/common-lib/utils/k8s/K8sUtil.go
#	kubelink/vendor/modules.txt
#	kubewatch/go.mod
#	kubewatch/go.sum
#	kubewatch/vendor/github.com/devtron-labs/common-lib/utils/k8s/K8sUtil.go
#	kubewatch/vendor/modules.txt
Comment thread common-lib/utils/k8s/configMap/Options.go Outdated
Comment thread common-lib/utils/k8s/configMap/Options.go Outdated
Comment thread common-lib/informer/bean.go Outdated
Comment thread common-lib/utils/k8s/configMap/Options.go Outdated
Ash-exp
Ash-exp previously approved these changes May 27, 2025
# Conflicts:
#	kubelink/go.mod
#	kubelink/go.sum
#	kubelink/vendor/modules.txt
#	kubewatch/go.mod
#	kubewatch/go.sum
#	kubewatch/vendor/modules.txt
@github-actions

github-actions Bot commented Jun 9, 2025

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

@prakash100198 prakash100198 changed the title Rename secret to cm cluster fix: when a cluster event occurs, create config map instead of secret Jun 10, 2025
@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

1 similar comment
@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

@prakash100198 prakash100198 changed the title fix: when a cluster event occurs, create config map instead of secret chore: when a cluster event occurs, create config map instead of secret Jun 10, 2025
@prakash100198 prakash100198 merged commit a435581 into develop Jun 10, 2025
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants